package com.lzj.demo.design.visitor.user;

import com.lzj.demo.design.visitor.visitor.IVisitor;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public abstract class IUser {
    /**
     * 姓名
     * */
    public String name;
    /**
     * 身份
     * */
    public String identity;
    /**
     * 班级
     * */
    public String clazz;
    //核心访问方法
    public abstract void accept(IVisitor visitor);
}
